]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
a11y: calendar: Month name should be navigable
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 27 Aug 2013 13:17:17 +0000 (15:17 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 28 Aug 2013 14:23:09 +0000 (16:23 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=706903

data/theme/gnome-shell.css
js/ui/calendar.js

index 5a4b5644f1672cf3a01e66c06703135e6f82b97a..015a892d95c0f9dfc52f452d44aae2cdfa40c968 100644 (file)
@@ -1212,6 +1212,10 @@ StScrollBar StButton#vhandle:active {
     padding-top: 8px;
 }
 
+.calendar-month-label:focus {
+    background-color: #999999;
+}
+
 .calendar-change-month-back {
     width: 18px;
     height: 12px;
index cb5a2940ea97e047c3adab1e5071a5aa57e9e190..75dcbb6096e82ddd3b5f6e30ea702395d5b20255 100644 (file)
@@ -449,7 +449,8 @@ const Calendar = new Lang.Class({
         this._topBox.add(this._backButton);
         this._backButton.connect('clicked', Lang.bind(this, this._onPrevMonthButtonClicked));
 
-        this._monthLabel = new St.Label({style_class: 'calendar-month-label'});
+        this._monthLabel = new St.Label({style_class: 'calendar-month-label',
+                                         can_focus: true });
         this._topBox.add(this._monthLabel, { expand: true, x_fill: false, x_align: St.Align.MIDDLE });
 
         this._forwardButton = new St.Button({ style_class: 'calendar-change-month-forward',